package sample_client;

import java.io.PrintStream;
import java.net.Socket;

public class Client {
	String firstName;
	String lastName;
	int gender;
	
	Socket client;
	
	int loop = 600/5*24;
	
	public Client() {
		super();
	}
	
		
	public void sendEmployee() throws Exception {
		PrintStream out = new PrintStream(client.getOutputStream());
		int count = 1;
		while(count <= loop) {
			out.println(firstName + ":" + lastName + count + ":" + gender);
			Thread.sleep(5000);
		}
		out.println(".");
		client.close();
	}


	public String getFirstName() {
		return firstName;
	}


	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}


	public String getLastName() {
		return lastName;
	}


	public void setLastName(String lastName) {
		this.lastName = lastName;
	}


	public int getGender() {
		return gender;
	}


	public void setGender(int gender) {
		this.gender = gender;
	}


	public Socket getClient() {
		return client;
	}


	public void setClient(Socket client) {
		this.client = client;
	}
	
	
}